package com.hsmpay.mobile.dao.terminal;

import com.hsmpay.common.dao.BaseDao;
import com.hsmpay.mobile.pojo.terminal.Tchannel;

import java.io.Serializable;
import java.sql.SQLException;

/**
 * 终端通道  dao接口
 */
public interface TchannelDao<Entity extends Serializable, Query extends Object> extends BaseDao<Entity, Query> {
    /**
     * 根据终端代码  查询通道
     *
     * @param code
     * @return
     * @throws SQLException
     */
    public Tchannel searchMobileTchannelByCode(Integer code) throws SQLException;

    /**
     * 更新code 修改更新第三方参数
     *
     * @param code
     * @param otherParam
     * @return
     * @throws Exception
     */
    public int updateMobileTcOtherByCode(Integer code, String otherParam) throws SQLException;


}
